import Vue from 'vue'
import 'normalize.css/normalize.css'// A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n

import '@/assets/iconfont/iconfont.css'

import App from './App'
import router from './router'
import store from './store'
import prototype from './utils/prototype'

import '@/permission' // permission control
import misCompontent from "@/components";  // 组件库
import mixins from '@/mixins'
import filters from '@/filters'
import directive from '@/directive'

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))

Vue.use(ElementUI, { locale })
Vue.use(prototype)
Vue.use(misCompontent);
Vue.use(filters);
Vue.use(directive);
Vue.mixin(mixins);  // 一定要再其他组件后引入


Vue.config.productionTip = false

new Vue({
  components: { App },
  router,
  store,
  template: '<App/>'
}).$mount('#app')
